//
//  ViewController.m
//  内存管理
//
//  Created by MyMac on 15/10/20.
//  Copyright (c) 2015年 tongfang. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIView*v=[[UIView alloc]init];
    [v retain];
    [v retain];
    [v release];
    NSLog(@"%ld",v.retainCount);
    
    
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
